package com.monitor.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 销售维修-销售表
 * </p>
 *
 * @author LX
 * @since 2018-09-12
 */
@TableName("erp_sale_repair_sale")
public class ErpSaleRepairSale extends Model<ErpSaleRepairSale> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 销售维修单ID
     */
    @TableField("order_id")
    private String orderId;

    public Integer getErpMaterielId() {
        return erpMaterielId;
    }

    public void setErpMaterielId(Integer erpMaterielId) {
        this.erpMaterielId = erpMaterielId;
    }

    /**
     * 物料ID
     */
    @TableField("erpMaterielId")
    private Integer erpMaterielId;

    /**
     * 物料ID
     */
    @TableField("customer_id")
    private Integer customerId;

    public Integer getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Integer customerId) {
        this.customerId = customerId;
    }

    /**
     * 仓库ID
     */
    @TableField("warehouse_id")
    private Integer warehouseId;
    /**
     * 物料 名称
     */
    @TableField("materiel_name")
    private String materielName;
    /**
     * 物料 品牌
     */
    @TableField("materiel_brand")
    private String materielBrand;
    /**
     * 物料 规格
     */
    @TableField("materiel_Specifications")
    private String materielSpecifications;
    /**
     * 物料 型号
     */
    @TableField("materiel_model")
    private String materielModel;
    /**
     * 物料 产地
     */
    @TableField("materiel_place")
    private String materielPlace;
    /**
     * 物料 状态
     */
    @TableField("materiel_state")
    private String materielState;
    /**
     * 物料 单位
     */
    @TableField("materiel_unit")
    private String materielUnit;
    /**
     * 物料 生产编号
     */
                    //MATERIEL_PRODUCTION_ID
    @TableField("materiel_production_id")
    private String materielProductionId;
    /**
     * 物料 去向
     */
    @TableField("materiel_out_to")
    private String materielOutTo;
    /**
     * 胎压 id
     */
    @TableField("materiel_taiyaid")
    private String materielTaiyaid;

    public String getMaterielTaiyaid() {
        return materielTaiyaid;
    }

    public void setMaterielTaiyaid(String materielTaiyaid) {
        this.materielTaiyaid = materielTaiyaid;
    }
    /**
     * 物料 数量
     */
    @TableField("materiel_number")
    private Integer materielNumber;
    /**
     * 物料 单价
     */
    @TableField("materiel_price")
    private Double materielPrice;
    /**
     * 物料 总价
     */
    @TableField("materiel_total")
    private Double materielTotal;
    /**
     * 物料 胎压
     */
    @TableField("materiel_pressure")
    private Double materielPressure;
    /**
     * 动平衡 左
     */
    @TableField("dynamic_balancing_left")
    private Integer dynamicBalancingLeft;
    /**
     * 动平衡 右
     */
    @TableField("dynamic_balancing_right")
    private Integer dynamicBalancingRight;
    /**
     * 物料的含税总价
     */
    @TableField("materiel_total_tax")
    private Double materielTotalTax;
    /**
     * 来源
     */
    private transient  String warehouseName;

    /**
     *车牌号
     */
    @TableField("car_pai")
    private String carPai;

    /**
     * 二维码
     */
    @TableField("materiel_eqcode")
    private  String materielEqcode;
       /**
     * rfid
     */
    @TableField("materiel_rfid")
    private  String materielRfid;

//    /**
//     * 物料维修上面的id
//     */
//    @TableField("wuliaoweixiu_top_id")
//    private  Integer wuliaoweixiuTopId;
//
//    public Integer getWuliaoweixiuTopId() {
//        return wuliaoweixiuTopId;
//    }
//
//    public void setWuliaoweixiuTopId(Integer wuliaoweixiuTopId) {
//        this.wuliaoweixiuTopId = wuliaoweixiuTopId;
//    }

    public String getMaterielEqcode() {
        return materielEqcode;
    }

    public void setMaterielEqcode(String materielEqcode) {
        this.materielEqcode = materielEqcode;
    }

    public String getMaterielRfid() {
        return materielRfid;
    }

    public void setMaterielRfid(String materielRfid) {
        this.materielRfid = materielRfid;
    }

    public String getCarPai() {
        return carPai;
    }

    public void setCarPai(String carPai) {
        this.carPai = carPai;
    }

    public String getWarehouseName() {
        return warehouseName;
    }

    public void setWarehouseName(String warehouseName) {
        this.warehouseName = warehouseName;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public Integer getWarehouseId() {
        return warehouseId;
    }

    public void setWarehouseId(Integer warehouseId) {
        this.warehouseId = warehouseId;
    }

    public String getMaterielName() {
        return materielName;
    }

    public void setMaterielName(String materielName) {
        this.materielName = materielName;
    }

    public String getMaterielBrand() {
        return materielBrand;
    }

    public void setMaterielBrand(String materielBrand) {
        this.materielBrand = materielBrand;
    }

    public String getMaterielSpecifications() {
        return materielSpecifications;
    }

    public void setMaterielSpecifications(String materielSpecifications) {
        this.materielSpecifications = materielSpecifications;
    }

    public String getMaterielModel() {
        return materielModel;
    }

    public void setMaterielModel(String materielModel) {
        this.materielModel = materielModel;
    }

    public String getMaterielPlace() {
        return materielPlace;
    }

    public void setMaterielPlace(String materielPlace) {
        this.materielPlace = materielPlace;
    }

    public String getMaterielState() {
        return materielState;
    }

    public void setMaterielState(String materielState) {
        this.materielState = materielState;
    }

    public String getMaterielUnit() {
        return materielUnit;
    }

    public void setMaterielUnit(String materielUnit) {
        this.materielUnit = materielUnit;
    }

    public String getMaterielProductionId() {
        return materielProductionId;
    }

    public void setMaterielProductionId(String materielProductionId) {
        this.materielProductionId = materielProductionId;
    }

    public String getMaterielOutTo() {
        return materielOutTo;
    }

    public void setMaterielOutTo(String materielOutTo) {
        this.materielOutTo = materielOutTo;
    }

    public Integer getMaterielNumber() {
        return materielNumber;
    }

    public void setMaterielNumber(Integer materielNumber) {
        this.materielNumber = materielNumber;
    }

    public Double getMaterielPrice() {
        return materielPrice;
    }

    public void setMaterielPrice(Double materielPrice) {
        this.materielPrice = materielPrice;
    }

    public Double getMaterielTotal() {
        return materielTotal;
    }

    public void setMaterielTotal(Double materielTotal) {
        this.materielTotal = materielTotal;
    }

    public Double getMaterielPressure() {
        return materielPressure;
    }

    public void setMaterielPressure(Double materielPressure) {
        this.materielPressure = materielPressure;
    }

    public Integer getDynamicBalancingLeft() {
        return dynamicBalancingLeft;
    }

    public void setDynamicBalancingLeft(Integer dynamicBalancingLeft) {
        this.dynamicBalancingLeft = dynamicBalancingLeft;
    }

    public Integer getDynamicBalancingRight() {
        return dynamicBalancingRight;
    }

    public void setDynamicBalancingRight(Integer dynamicBalancingRight) {
        this.dynamicBalancingRight = dynamicBalancingRight;
    }

    public Double getMaterielTotalTax() {
        return materielTotalTax;
    }

    public void setMaterielTotalTax(Double materielTotalTax) {
        this.materielTotalTax = materielTotalTax;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ErpSaleRepairSale{" +
        ", id=" + id +
        ", orderId=" + orderId +
        ", warehouseId=" + warehouseId +
        ", materielName=" + materielName +
        ", materielBrand=" + materielBrand +
        ", materielSpecifications=" + materielSpecifications +
        ", materielModel=" + materielModel +
        ", materielPlace=" + materielPlace +
        ", materielState=" + materielState +
        ", materielUnit=" + materielUnit +
        ", materielProductionId=" + materielProductionId +
        ", materielOutTo=" + materielOutTo +
        ", materielNumber=" + materielNumber +
        ", materielPrice=" + materielPrice +
        ", materielTotal=" + materielTotal +
        ", materielPressure=" + materielPressure +
        ", dynamicBalancingLeft=" + dynamicBalancingLeft +
        ", dynamicBalancingRight=" + dynamicBalancingRight +
        ", materielTotalTax=" + materielTotalTax +
        "}";
    }
}
